package com.web709.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

// DemandImg.java
@Data
@ApiModel(value = "DemandImg", description = "需求图片")
public class DemandImg {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer demandId;  // 关联需求ID
    private String img;    // 图片路径

    public DemandImg(int id, String trim) {
        this.id = id;
        this.img = trim;
    }
}
